package com.example.a10928.weifriend.binding;

import android.databinding.ObservableList;

public abstract class SimpleOnListChangedCallback<T extends ObservableList> extends ObservableList.OnListChangedCallback<T> {
    @Override
    public abstract void onChanged(T sender);

    @Override
    public void onItemRangeChanged(T sender, int positionStart, int itemCount) {
        onChanged(sender);
    }

    @Override
    public void onItemRangeInserted(T sender, int positionStart, int itemCount) {
        onChanged(sender);
    }

    @Override
    public void onItemRangeMoved(T sender, int fromPosition, int toPosition, int itemCount) {
        onChanged(sender);
    }

    @Override
    public void onItemRangeRemoved(T sender, int positionStart, int itemCount) {
        onChanged(sender);
    }
}